package com.lt.eurekaconsumerfeign.controller;

import com.lt.dto.UserDto;
import com.lt.eurekaconsumerfeign.service.UserService;
import com.lt.vo.ResultEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {
    @Autowired
    UserService userService;

    @RequestMapping("/user/list")
    public ResultEntity userList(UserDto userDto){
        ResultEntity userList = userService.getUserList(userDto);
        return userList;
    }
}
